Skip to content

ci: run the scheduled workflows only in the upstream repository - #15398

Merged
diegosouzapw merged 1 commit into
cheaper-inference:release/v3.8.52from
maxmad64bis:ci/guard-scheduled-workflows-to-upstream
Oct 6, 2026
Merged

diegosouzapw merged 1 commit into
cheaper-inference:release/v3.8.52from
maxmad64bis:ci/guard-scheduled-workflows-to-upstream

Conversation

@maxmad64bis

@maxmad64bis maxmad64bis commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ base-red inherited: #15306

Summary

Forks with Actions enabled inherited the nightly and export schedules and ran their jobs and writes outside the upstream repository, because no job checked which repository triggered the run. Every job in the ten scheduled workflows now skips scheduled runs outside the upstream repository, while manual and push runs behave as before. A workflow check fails the build if a future scheduled job ships without that guard.

Related Issues

  • No linked issue — scheduled workflows run on any fork that enables Actions

Validation

  • Change type: build-deploy
  • Focused tests and category gates from the golden path
  • npm run lint — ESLint on the touched files is clean; the full run is red on the base (🔴 Release branch not green: release/v3.8.52 #15306).
  • Reconciled with the current active release base; focused checks rerun afterward
  • Production-code changes include a new or updated automated test in this PR

Tests Added Or Updated

  • tests/unit/build/check-workflows.test.ts — seven new cases: every scheduled workflow carries the guard on each job, unguarded jobs are reported, unreadable or invalid files fail closed, manual and push runs pass anywhere while scheduled runs pass only upstream, and findings use repository-relative paths.

Coverage Notes

N/A — this change touches no code under src/, open-sse/, electron/ or bin/.

Reviewer Notes

  • Behavior: Scheduled runs outside the upstream repository move from run to skip, which is the point of this change; every other trigger behaves exactly as before, including manual and push runs on forks. The guard is combined with each existing job condition so current push and branch filters keep working. The new check matches the guard by substring, so it would also accept an owner-only condition that names the account without the repository; no shipped job uses that form and every one of the twenty-one guards names the exact repository.
  • Follow-up: A follow-up can tighten the matcher and add the owner-only case without touching this change.

Scheduled crons skipped outside diegosouzapw/OmniRoute; 21 jobs guarded, check-workflows rule proves it.
@maxmad64bis
maxmad64bis force-pushed the ci/guard-scheduled-workflows-to-upstream branch from 7c311b6 to e101b7e Compare October 2, 2026 22:38
@maxmad64bis
maxmad64bis marked this pull request as ready for review October 3, 2026 01:40
@diegosouzapw
diegosouzapw merged commit a1af1df into cheaper-inference:release/v3.8.52 Oct 6, 2026
114 of 166 checks passed
@maxmad64bis
maxmad64bis deleted the ci/guard-scheduled-workflows-to-upstream branch October 7, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants